numa: Attempt more efficient NUMA allocation in hypervisor by default.
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 4 Aug 2010 14:35:28 +0000 (15:35 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 4 Aug 2010 14:35:28 +0000 (15:35 +0100)
commit91c6005e01321a07b0ea8ecc5a3066ba70389e47
tree5f6d52a7e734aab495c0b7d01eeb832317701b8b
parent6044f6fa8d0c4f1ddf42eb18d91f4e4044d83cae
numa: Attempt more efficient NUMA allocation in hypervisor by default.

 1. Try to allocate from nodes containing CPUs which a guest can be
 scheduled on.
 2. Remember which node we allocated from last, and round-robin
 allocations among above-mentioned nodes.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/common/domain.c
xen/common/memory.c
xen/common/page_alloc.c
xen/common/schedule.c
xen/include/xen/sched.h